import tensorflow as tf

w1 = tf.Variable(tf.random_normal([2,3],stddev=1.0),name="w1")
w2 = tf.Variable(tf.random_normal([2,3],dtype=tf.float64,stddev=1.0),name="w2")

w1.assign(w2)

'''
程序报错 类型错误
TypeError: Input 'value' of 'Assign' Op has type float64_ref that does 
not match type float32 of argument 'ref'.
问题在于random-normal默认是tf.float32类型，不能直接和tf.float64进行赋值
'''